import { Controller, Get, Param } from '@nestjs/common';
import { Ctx, MessagePattern, Payload, RedisContext } from '@nestjs/microservices';
import { AppService } from './app.service';

@Controller()
export class AppController {
    constructor(private readonly appService: AppService) {}

    @MessagePattern({ cmd: 'getHttpData' })
    getNotifications(param) {
        console.log(param, '---');

        return 'http server responce';
    }
}
